home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 October / Enter 10 2006.iso / boot / isolinux / initrd / in / usr / lib / setup / unmigrate.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2005-01-28  |  391 b   |  14 lines

  1. #!/bin/sh
  2. #
  3. # This resets the temporary directory to /tmp on the floppy in the
  4. # case where it's been changed during a previous 'setup' run.  This
  5. # should be done before $TMP is cleared.
  6. #
  7.  
  8. TMPLINK="`LC_ALL=C /bin/ls -l /var/log/setup/tmp | tr -s ' ' | cut -f 11 -d ' '`"
  9. if [ -L /var/log/setup/tmp -a ! "$TMPLINK" = "/tmp" ]; then
  10.   ( cd /var/log/setup
  11.     rm tmp
  12.     ln -sf /tmp tmp )
  13. fi
  14.